<!--
 * @Description: axios的测试
 * @Author: zzj
 * @Date: 2021-09-17 16:48:22
 * @LastEditors: zzj
 * @LastEditTime: 2021-09-20 17:15:58
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>axios</title>
     <script src="https://cdn.bootcdn.net/ajax/libs/qs/6.10.1/qs.min.js"></script>
    <script src="./axios.js"></script>
    <script>
        let url = "http://121.199.29.84:8001/article/findById";
        let token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJNalk9Iiwic3ViIjoiYWRtaW4yIiwiaXNzIjoiMDk4ZjZiY2Q0NjIxZDM3M2NhZGU0ZTgzMjYyN2I0ZjYiLCJpYXQiOjE2MzIxMjg4NTYsImF1ZCI6InJlc3RhcGl1c2VyIiwiZXhwIjoxNjMyMzAxNjU2LCJuYmYiOjE2MzIxMjg4NTZ9.s5bD5nMVp1DtWf0SET86X2sMuZcNwZF323WI3gdfjMU";
        let id = 75;
        axios.get(url,{ 
            headers:{
                "Authorization":token
            },
            params:{
                id
            }
        }).then((resp)=>{
            console.log(resp)
        })
    </script>
</head>
<body>
    
</body>
</html>